package course.po;

import java.io.Serializable;
import java.util.Date;

public class Dean implements Comparable<Object>,Serializable{
	private int deaId;
	private String deaNo;
    private String deaName;
    private String deaSex;
    private Date deaAge;
	public Dean() {
		super();
	}
	public Dean(int deaId,String deaNo, String deaName, String deaSex, Date deaAge) {
		super();
		this.deaId = deaId;
		this.deaNo = deaNo;
		this.deaName = deaName;
		this.deaSex = deaSex;
		this.deaAge = deaAge;
	}
<<<<<<< HEAD
	public Dean(String deaNo, String deaName, String deaSex, Date deaAge) {
		super();
		this.deaNo = deaNo;
		this.deaName = deaName;
		this.deaSex = deaSex;
		this.deaAge = deaAge;
	}
=======
>>>>>>> refs/remotes/origin/master
	@Override
	public String toString() {
		return "Dean [编号:" + deaId + ", 教职工号:" + deaNo + ", 姓名：" + deaName + ", 性别:" + deaSex + ", 年龄:" + deaAge 
				+ "]";
	}
	
	public int compareTo(Object object) {
		Dean bk = (Dean) object;
		int difference = (int) ((this.getDeaId() - bk.getDeaId()) * 10000);
		return difference;
	}
	public int getDeaId() {
		return deaId;
	}
	public void setDeaId(int deaId) {
		this.deaId = deaId;
	}
	public String getDeaNo() {
		return deaNo;
	}
	public void setDeaNo(String deaNo) {
		this.deaNo = deaNo;
	}
	public String getDeaName() {
		return deaName;
	}
	public void setDeaName(String deaName) {
		this.deaName = deaName;
	}
	public String getDeaSex() {
		return deaSex;
	}
	public void setDeaSex(String deaSex) {
		this.deaSex = deaSex;
	}
	public Date getDeaAge() {
		return deaAge;
	}
	public void setDeaAge(Date deaAge) {
		this.deaAge = deaAge;
	}
}
